<div class="bjui-pageContent">
    <div data-layout-h="0">
        <div  style="padding-left:0px;padding-right:0px;">
        	<div data-toggle="autoajaxload" data-url="${rootpath}/Flow/orderViewForm?orderId=${orderId}"
        			style="overflow: hidden;"></div>
        </div>
        <div style="padding-bottom:0px;padding-top: 5px;">
        	<ul>
   				<li class="pull-right">
   					<a href="${rootpath}/Snaker/orderview?orderid=${orderId}" data-toggle="dialog" data-id="snakerorderview" 
        					data-width="980" data-height="780" data-mask="true" data-type="POST" 
        					data-title="流程实例流程图" class="btn btn-blue">查看流程图</a>
        		</li>
        		<#if orderState == 1>
        		<li class="pull-left">
        			<a href="${rootpath}/Flow/orderTerminate?orderId=${orderId}" class="btn btn-red"
        				data-toggle="doajax" data-confirm-msg="请确认是否强制终止本流程实例？">强制终止</a>
        		</li>
        		</#if>
			</ul>
		</div>
        <div style="padding-left:0px;padding-right:0px;padding-top: 5px;">
        	<!-- 历史任务List -->
        	<table class="table table-bordered table-hover">
        		<thead>
        			<tr>
        				<th colspan="5" style="text-align: center;">历史任务</th>
        			</tr>
        			<tr>
        				<th width="180px" align="center">时间</th>
        				<th width="100px" align="center">任务名称</th>
        				<th width="50px" align="center">处理人</th>
        				<th width="70px" align="center">处理结果</th>
        				<th align="center">处理说明</th>
        			</tr>
        		</thead>
        		<tbody>
        			<#list historyTasks as item>
        			<tr>
        				<td align="center">${(item.finish_Time)!}</td>
        				<td align="center">${(item.display_Name)!}</td>
        				<td align="center">${(item.userName)!}</td>
        				<td align="center" class="<#if item.flow_operate='转发'>info<#elseif item.flow_operate='退回' || item.flow_operate='不同意'>danger<#else>success</#if>">${(item.flow_operate)!}</td>
        				<td>${(item.flow_operate_mark)!}</td>
        			</tr>
        			</#list>
        		</tbody>
        	</table>
        </div>
    </div>
</div>